package expression.v1.service;

import java.util.List;

import expression.v1.model.ExpPkg;

public interface IExpPackageService {
	//添加/更新表情包
	int addExpPackage(ExpPkg pkg);
	//批量添加/更新表情包
	int addAndUpdateExpPackages(List<ExpPkg> pkgs);
	//删除表情包
	int deleteExpPackage(ExpPkg pkg);
	//批量删除表情包
	int deleteExpPackages(List<ExpPkg> pkgs);
	//按关键字精确查询表情包
	ExpPkg queryExpPackage(String keyword);
	//关键字模糊查询
	List<ExpPkg> queryExpPackages(String...keyword);
	//查询最新表情包
	List<ExpPkg> queryLatest(int from,int limit);
	int countAll();
	int countByConditions(Object...args);
	List<ExpPkg> queryCheckingSelKey(int state);
	List<ExpPkg> queryCheckedSelKey(int state);
	int updateQueryKeyState(int state,String[] keywords);
}
